package com.lykj.modules.shop.wrapper;

import com.lykj.core.mp.support.BaseEntityWrapper;
import com.lykj.core.tool.utils.BeanUtil;
import com.lykj.modules.shop.entity.UserExtract;
    import com.lykj.modules.shop.vo.UserExtractVO;
import java.util.Objects;

/**
 * 提现表包装类,返回视图层所需的字段
 *
 * @author cxl
 * @since 2022-01-21
 */
public class UserExtractWrapper extends BaseEntityWrapper<UserExtract, UserExtractVO>  {

	public static UserExtractWrapper build() {
		return new UserExtractWrapper();
 	}

	@Override
	public UserExtractVO entityVO(UserExtract userExtract) {
		UserExtractVO userExtractVO = Objects.requireNonNull(BeanUtil.copy(userExtract, UserExtractVO.class));

		//User createUser = UserCache.getUser(userExtract.getCreateUser());
		//User updateUser = UserCache.getUser(userExtract.getUpdateUser());
		//userExtractVO.setCreateUserName(createUser.getName());
		//userExtractVO.setUpdateUserName(updateUser.getName());

		return userExtractVO;
	}

}
